
#ifndef MENUBAR_H
#define MENUBAR_H

#include <qmenubar.h>
class MyPopupMenu;
class MainWindow;
class QPopupMenu;
class QListViewItem;

class MenuBar:public QMenuBar
{
    Q_OBJECT			////
  public:			///
    MenuBar (QWidget * parent = 0, const char *name = 0);
     ~MenuBar ();

    MainWindow *mainwindow;
    MyPopupMenu *bookmark;
    QPopupMenu *history;
    QPopupMenu *menu_config;
    QPopupMenu *submenu_color;
    int color_column;

  private:
      QPopupMenu * menu_file;
    QPopupMenu *menu_help;

    public slots:		////
    void addToPopupMenu (QPopupMenu *, QString, QString, QString);

    private slots:		////
    void onconfigclicked ();
    void onChooseHistory (int i);
    void onChooseBookmark (int i);
    void addToBookmark ();
    void about ();
    void onNullChannelToggled ();
    void onAutoRestartPlayerToggled ();
    void onChannelSortToggled ();
    void onSwitchColor (int);
    void clearHistory ();

};

#endif
